package com.firefly.dao.dto.cms;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @description: 链接分类
 * @author: lzg(萤火科技 ： 854378082 @ qq.com)
 * @date: 2022/12/20
 **/
@Data
@EqualsAndHashCode
public class LinkTypeDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Positive(groups = {update.class},message = "ID是大于0的整数")
    private Integer id;
    @NotBlank(groups = {create.class,update.class},message = "名称不能为空")
    private String name;
    public interface create{};
    public interface update{};
}
